<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>BOM : location</title>

    <script type="text/javascript">
        console.log( Date.now() );

        function myRefresh(){
            location.reload();
        }

        function myToURL(){
            // location.href = 'http://www.ecut.edu.cn' ;
            location.assign( 'http://www.ecut.edu.cn' );
        }
    </script>

</head>
<body>

    <button type="button" onclick="myRefresh()">刷新页面</button>

    <button type="button" onclick="myToURL()">去东华理工</button>
    
</body>
</html>